package com.example.keli.ui.home.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Description:
 * Data：2019/3/21-9:54
 * Author: Allen
 */
public class HomeBannerData implements Parcelable {

    /**
     * id : 2
     * banner : http://kl-api.fz222.com/static/img/banner.png
     * video : http://cdns.h5ck.com/w0674338ew7.p701.1.mp4
     * video_img : http://keli.h5ck.com/img/videologo.833cb00d.png
     */

    private String id;
    private String banner;
    private String video;
    private String video_img;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBanner() {
        return banner;
    }

    public void setBanner(String banner) {
        this.banner = banner;
    }

    public String getVideo() {
        return video;
    }

    public void setVideo(String video) {
        this.video = video;
    }

    public String getVideo_img() {
        return video_img;
    }

    public void setVideo_img(String video_img) {
        this.video_img = video_img;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.banner);
        dest.writeString(this.video);
        dest.writeString(this.video_img);
    }

    public HomeBannerData() {
    }

    protected HomeBannerData(Parcel in) {
        this.id = in.readString();
        this.banner = in.readString();
        this.video = in.readString();
        this.video_img = in.readString();
    }

    public static final Creator<HomeBannerData> CREATOR = new Creator<HomeBannerData>() {
        @Override
        public HomeBannerData createFromParcel(Parcel source) {
            return new HomeBannerData(source);
        }

        @Override
        public HomeBannerData[] newArray(int size) {
            return new HomeBannerData[size];
        }
    };
}
